package com.zzs.blog.website.util;

import com.google.gson.Gson;

/**
 * @Author ZechariahZheng
 * @Date 2019/10/27 10:20
 * @Version 1.0
 * @description json转换工具
 */
public class GsonUtils {
    private static final Gson gson = new Gson();

    public static String toJsonString(Object object){
        return object==null?null:gson.toJson(object);
    }
}
